package com.ruoyi.transaction.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.transaction.mapper.YZMOrderAfterSalesMapper;
import com.ruoyi.transaction.domain.YZMOrderAfterSales;
import com.ruoyi.transaction.service.IYZMOrderAfterSalesService;

/**
 * 订单售后申请Service业务层处理
 *
 * @author yzm
 * @date 2025-08-09
 */
@Service
public class YZMOrderAfterSalesServiceImpl implements IYZMOrderAfterSalesService
{
    @Autowired
    private YZMOrderAfterSalesMapper yZMOrderAfterSalesMapper;

    /**
     * 查询订单售后申请
     *
     * @param id 订单售后申请主键
     * @return 订单售后申请
     */
    @Override
    public YZMOrderAfterSales selectYZMOrderAfterSalesById(Long id)
    {
        return yZMOrderAfterSalesMapper.selectYZMOrderAfterSalesById(id);
    }

    /**
     * 查询订单售后申请列表
     *
     * @param yZMOrderAfterSales 订单售后申请
     * @return 订单售后申请
     */
    @Override
    public List<YZMOrderAfterSales> selectYZMOrderAfterSalesList(YZMOrderAfterSales yZMOrderAfterSales)
    {
        return yZMOrderAfterSalesMapper.selectYZMOrderAfterSalesList(yZMOrderAfterSales);
    }

    /**
     * 新增订单售后申请
     *
     * @param yZMOrderAfterSales 订单售后申请
     * @return 结果
     */
    @Override
    public int insertYZMOrderAfterSales(YZMOrderAfterSales yZMOrderAfterSales)
    {
        return yZMOrderAfterSalesMapper.insertYZMOrderAfterSales(yZMOrderAfterSales);
    }

    /**
     * 修改订单售后申请
     *
     * @param yZMOrderAfterSales 订单售后申请
     * @return 结果
     */
    @Override
    public int updateYZMOrderAfterSales(YZMOrderAfterSales yZMOrderAfterSales)
    {
        return yZMOrderAfterSalesMapper.updateYZMOrderAfterSales(yZMOrderAfterSales);
    }

    /**
     * 批量删除订单售后申请
     *
     * @param ids 需要删除的订单售后申请主键
     * @return 结果
     */
    @Override
    public int deleteYZMOrderAfterSalesByIds(Long[] ids)
    {
        return yZMOrderAfterSalesMapper.deleteYZMOrderAfterSalesByIds(ids);
    }

    /**
     * 删除订单售后申请信息
     *
     * @param id 订单售后申请主键
     * @return 结果
     */
    @Override
    public int deleteYZMOrderAfterSalesById(Long id)
    {
        return yZMOrderAfterSalesMapper.deleteYZMOrderAfterSalesById(id);
    }
}
